package com.yanqu.road.server.timer.orewar;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.player.OreWarModule;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.utils.executor.GeneralTask;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author ：zfr
 * @date ：2021/11/16 14:44
 */
public class OreWarSyncPatronsTask extends GeneralTask {
    protected Logger logger = LogManager.getLogger(OreWarSyncPatronsTask.class.getName());
    @Override
    public void doRun() {
        for (GamePlayer player : GamePlayerMgr.getPlayerMap().values()) {
            player.getModule(OreWarModule.class).patronsAbilityChangeTimeSync();
        }
    }
}
